﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <title>乐随行</title>
    <link rel="stylesheet" type="text/css" href="css/style.css" />
    <script type="text/javascript" src="../Scripts/jquery-1.4.1.js"></script>
    <script type="text/javascript" src="../Scripts/outlook.js"></script>
    <script type="text/javascript">
        if (getBrowser() == 6) {
            $(document).ready(
                function () {
                    var w = ($("#PageForm").width() - 220) + "px";
                    $("#content").css({ width: w });
                }
            );
        }
        $(document).ready(function () {
            $.ajax({
                url: "LoadMenus.ashx",
                global: false,
                type: "POST",
                beforeSend: function () { $("#navigation").html('<div><img src="images/ajax-loader.gif" />数据读取中，请稍候......</div>'); },
                success: function (data, textStatus) { $("#navigation").html(data); },
                error: function () { $("#navigation").html(''); }
            });
            $.ajax({
                url: "LoadUserName.aspx",
                global: false,
                type: "POST",
                success: function (data, textStatus) { $("#labUserName").html(data); }
            });
        }
        );
        function GetMune(strid) {
            $.ajax({
                url: "GetMenus.ashx",
                data: { "ID": strid },
                global: false,
                type: "POST",
                beforeSend: function () { $("#htmlMenuPanel").html('<div><img src="images/ajax-loader.gif" />数据读取中，请稍候......</div>'); },
                success: function (data, textStatus) { $("#htmlMenuPanel").html(data); },
                error: function () { $("#htmlMenuPanel").html('对不起，获取数据出现错误，请重试！'); }
            });
        }
        function GetLocation(strid) {
            $.ajax({
                url: "GetLocation.ashx",
                data: { "ID": strid },
                global: false,
                type: "POST",
                success: function (data, textStatus) { $("#divLocation").html('当前位置：' + data); },
                error: function () { $("#divLocation").html('当前位置：首页'); }
            });
            document.getElementById("divIniMain").style.display = "none";
            document.getElementById("contentPanel").style.display = "";
        }
        function GetMainPage() {
            $('#divLocation').html('当前位置：首页');
            document.getElementById("divIniMain").style.display = "";
            document.getElementById("contentPanel").style.display = "none";
        }

        function GetModifyPassword() {
            $('#divLocation').html('当前位置：账号设置');
            document.getElementById("divIniMain").style.display = "none";
            document.getElementById("contentPanel").style.display = "";
        }
    </script>
</head>
<body style="background-color: #e6f4fa;">
    <form id="PageForm" style="width: 100%; height: 100%">
    <div id="pHeader">
        <div >
            <img src="images/logo.png" />
        </div>
        <div style="background: url(images/header_nav_bg.gif) repeat-x left top; height: 27px;">
            <div class="welcome" style="padding-left: 30px; text-align: left">
                当前用户：你好<span id="labUserName">admin</span>欢迎进入系统</div>
            <div class="toolbarContent" style="padding-right: 50px; text-align: right;">
                <a href="#" onclick="javascript:GetMainPage()" style="vertical-align: middle">首页</a>
                &nbsp;&nbsp;|&nbsp;&nbsp; <a href="admin/UserManager/ModifyPassword.aspx" target="PageFrame"
                    onclick="javascript:GetModifyPassword()">账号设置</a> &nbsp;&nbsp;|&nbsp;&nbsp;
                <a href="logout.aspx">退出系统</a>
            </div>
        </div>
    </div>
    <div id="pContent">
        <!--<div style="width: 16%">-->
            <div class="navigation" id="navigation">
            </div>
            <div id="DivMid" class="strenthen" onclick="javascript:setMenuHide();">
                <img src="images/Stretch.gif" height="31" alt="" /></div>
        <!--</div>-->
        <!--</div>-->
        <div id="content" style="background-color: #e6f4fa;">
            <div class="subHeader1">
                <div style="font: 14px/1.5 tahoma, arial, \5b8b\4f53, sans-serif; height: 27px;">
                    <img src="images/home.gif" alt="" />&nbsp;<span style="vertical-align: top" id="divLocation">当前位置：首页</span>
                </div>
            </div>
            <div class="contentPanel" id="contentPanel">
                <iframe id="PageFrame" name="PageFrame" width="100%" height="100%" frameborder="0"
                    style="border: 0px solid #cecece; overflow: hidden;"></iframe>
            </div>
            <div class="contentPanel" id="divIniMain" style="background-color: #e6f4fa; width: 100%;
                text-align: left; vertical-align: middle; display: none">
                <img src="images/welcome.jpg" alt="欢迎页面" />
            </div>
        </div>
    </div>
    <div style="height: 2px">
        <br />
    </div>
    <div id="footer">
        <div style="width: 100%; text-align: center">
            <p>
                <span>Copyright © 2011 乐随行.com All Rights Reserved 沪ICP备*******号<br>
                    <br>
                </span>
            </p>
        </div>
    </div>
    </form>
</body>
</html>
<script type="text/javascript">
    $('#divLocation').html('当前位置：首页');
    document.getElementById("divIniMain").style.display = "";
    document.getElementById("contentPanel").style.display = "none";
</script>
